<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
require_once(APPPATH. 'controllers/layout.php');

class Home extends Layout
{
	public function __construct()
	{
		parent::__construct();
	}
	
	public function index()
	{

        $url_Filter = "dieu-hoa-khong-khi/?p=0&h=0&l=0&c=0&t=0&pr=0";

		$getAllCategory = $this->utility_model->selectStatus('tbl_category');
		$getAllProducts = $this->utility_model->selectStatus('tbl_products');
		$slider = $this->utility_model->selectSlider('tbl_slider');
		
		$khoanggia = $this->utility_model->selectStatus('tbl_aboutprice');
		$thuonghieu = $this->utility_model->selectStatus('tbl_brand');
		$hangsanxuat = $this->utility_model->selectStatus('tbl_origin');
		$congxuat = $this->utility_model->selectStatus('tbl_capacity');
        $tinhnang = $this->utility_model->selectStatus('tbl_technology');
        
        
		//$this->_data['main_container'] =  $this->load->view('home/main_view', array(
        $this->_data['main_container'] =  $this->load->view('frontend/home', array(
			'getAllCategory' => $getAllCategory,
			'getAllProduct' => $getAllProducts,
            'silders' => $slider,
			'khoanggia' => $khoanggia,
			'thuonghieu' => $thuonghieu,
			'hangsanxuat' => $hangsanxuat,
			'congxuat' => $congxuat,	
            'tinhnang' => $tinhnang,
            'url_Filter' => $url_Filter
		), true);
		$this->load->view('frontend/layout_view', $this->_data);
	}
	
}